package com.res.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.res.entity.Department;
import com.res.entity.Teacher;
import com.res.util.FenyeUtil;

public interface TeacherService {

	/**
	 *分页查询老师信息
	 * @return
	 */
	public FenyeUtil<Teacher> GetTeachByPage(Teacher t,Integer did,Pageable page);
	
	/**
	 * saveAndFlush添加和修改
	 */
	public Integer AddAndUpd(Teacher t);
	
	/**
	 * 删除
	 */
	public Integer Del(Integer tid);
	/**
	 * 获取所有部门
	 */
	public List<Department> GetAll();
}
